Ext.define('DragonApp.view.level.ChartToolbar', {
    extend: 'Ext.toolbar.Toolbar',
    alias: ['widget.level-chart-toolbar'],

    requires: [
        'Ext.button.Segmented'
    ],

    controller: 'level-chart',

    items: [
        '->',
        {
            xtype: 'segmentedbutton',
            allowMultiple: false,
            items: [{
                text: '等级人数'
            }, {
                text: '活跃人数(7日)'
            }, {
                text: '等级流失率'
            }],
            listeners: {
                toggle: 'onToggleClick'
            }
        }
    ]
});